<?php
$_name= $data[_name];
$_password = $data[_password];
$_contact = $data[_contact];
require_once './connect.php';
//查询语句
$sql = "select use_password from _user where use_contact='$_contact'";
$result = $conn->query($sql);
if($result->num_rows)
{
    $row=$result->fetch_assoc();
    if($row[use_password]==$_password)
    {
        $response =array(_data=>'成功');
    }
    else{
        $response =array(_error=>'密码错误');
    }
}
else{
    $response =array(_error=>'找不到用户');
}
echo json_encode($response);
$conn->close();
?>